
public class Person implements DogListener {
	private String name;
	public Person(String name){
		this.name = name;
	}
	public void dogHungry(DogEvent e){
		System.out.println(":" + name +" feeds "+ e.returnSource().getName());
	}
	public void dogThirsty(DogEvent e){
		System.out.println(":" + name +" give water to "+ e.returnSource().getName());
	}
	public void dogLonely(DogEvent e){
		System.out.println(":" + name +" plays with "+ e.returnSource().getName());
	}
	public void dogSleeps(DogEvent e){
		System.out.println(":" + name +" pats "+ e.returnSource().getName()+" on the heads");
	}


}
